﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Collections;

namespace ClassLibrary2
{
    public class Listbox : ListBox
    {
        public Listbox(): base()
        {

        }
        Hashtable hst = new Hashtable();
        public void clear()
        {
            hst.Clear();
            this.Items.Clear();

        }
        public void Add_Multi(object gizli, object gorunen)
        {

            hst.Add(gorunen, gizli);
            this.Items.Add(gorunen);

        }
        public int Get_Secilen_Gizliicerik()
        {
            try
            {
                int a =Convert.ToInt32( hst[this.Text]);
                return a;

            }
            catch (Exception)
            {

                return 0;
            }
        }

    }
}
